// pointer4.c 
// gcc pointer4.c

#include <stdio.h>
#include <stdlib.h>

void printString(char *ptr)
{
    while( *ptr != '\0' )
        printf("%c", *ptr++);
}

int main()
{
    char s1[] = "Hello";
    printString(s1);
    printf("\n");
    
    char *s2 = "C/C++";
    printString(s2);
    
    printf("\n\n");
    system("pause");
    return 0;
}

